package com.aceitunaproject.clientinterface.eventadapters;
import java.util.List;
import com.aceitunaproject.clientinterface.eventregistering.RuleViolationEventReceivedHandler;
import com.aceitunaproject.shared.message.Message;
import com.aceitunaproject.shared.message.concrete.RuleViolationEvent;

/**
 * Adapter for the RuleViolationEventReceived event handler
 */
public class RuleViolationEventReceivedAdapter extends BasicAceitunaEventAdapter {
	public RuleViolationEventReceivedAdapter(List<Object> handlers) {
		super(handlers);
	}

	public RuleViolationEventReceivedAdapter() {
	}

	@Override
	void triggerInHandler(Object handler, Message message) {
		((RuleViolationEventReceivedHandler) handler)
				.RuleViolationEventReceived((RuleViolationEvent) message);
	}

}